<template>
	<view @click="skip">
		登录页
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			let id = this.getParam()
			const app = getApp();
			// if(app.globalData.current==1){
			// 	uni.navigateTo({
			// 		url:'/pages/index/index?id='+id,
			// 		success: () => {
			// 			app.globalData.current=2
			// 		}
			// 	})
			// }
		},
		methods: {
			skip(){
				uni.navigateTo({
					url:'/pages/index/index'
				})
			},
			getParam(){
				let id;
				let url = window.location.href
				if (url.includes('#')) {
					id = url.split('id=')[1]
				} else {
					id = url.split('?')[1]
				}
				return id
			}
		}
	}
</script>

<style>

</style>